/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package entityBeans;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 *
 * @author allankv
 */
@Entity
@Table(name = "georeferenceverificationstatus")
@NamedQueries({
    @NamedQuery(name = "Georeferenceverificationstatus.findAll", query = "SELECT g FROM Georeferenceverificationstatus g"),
    @NamedQuery(name = "Georeferenceverificationstatus.findByIdgeoreferenceverificationstatus", query = "SELECT g FROM Georeferenceverificationstatus g WHERE g.idgeoreferenceverificationstatus = :idgeoreferenceverificationstatus"),
    @NamedQuery(name = "Georeferenceverificationstatus.findByGeoreferenceverificationstatus", query = "SELECT g FROM Georeferenceverificationstatus g WHERE g.georeferenceverificationstatus = :georeferenceverificationstatus")})
public class Georeferenceverificationstatus implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idgeoreferenceverificationstatus")
    private Integer idgeoreferenceverificationstatus;
    @Column(name = "georeferenceverificationstatus")
    private String georeferenceverificationstatus;
    @OneToMany(mappedBy = "georeferenceverificationstatus", fetch = FetchType.LAZY)
    private List<Geospatialelement> geospatialelementList;
    @OneToMany(mappedBy = "georeferenceverificationstatus", fetch = FetchType.LAZY)
    private List<Localityelement> localityelementList;

    public Georeferenceverificationstatus() {
    }

    public Georeferenceverificationstatus(Integer idgeoreferenceverificationstatus) {
        this.idgeoreferenceverificationstatus = idgeoreferenceverificationstatus;
    }

    public Georeferenceverificationstatus(Integer idgeoreferenceverificationstatus, String georeferenceverificationstatus) {
        this.idgeoreferenceverificationstatus = idgeoreferenceverificationstatus;
        this.georeferenceverificationstatus = georeferenceverificationstatus;
    }

    public Integer getIdgeoreferenceverificationstatus() {
        return idgeoreferenceverificationstatus;
    }

    public void setIdgeoreferenceverificationstatus(Integer idgeoreferenceverificationstatus) {
        this.idgeoreferenceverificationstatus = idgeoreferenceverificationstatus;
    }

    public String getGeoreferenceverificationstatus() {
        return georeferenceverificationstatus;
    }

    public void setGeoreferenceverificationstatus(String georeferenceverificationstatus) {
        this.georeferenceverificationstatus = georeferenceverificationstatus;
    }

    public List<Geospatialelement> getGeospatialelementList() {
        return geospatialelementList;
    }

    public void setGeospatialelementList(List<Geospatialelement> geospatialelementList) {
        this.geospatialelementList = geospatialelementList;
    }

    public List<Localityelement> getLocalityelementList() {
        return localityelementList;
    }

    public void setLocalityelementList(List<Localityelement> localityelementList) {
        this.localityelementList = localityelementList;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idgeoreferenceverificationstatus != null ? idgeoreferenceverificationstatus.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Georeferenceverificationstatus)) {
            return false;
        }
        Georeferenceverificationstatus other = (Georeferenceverificationstatus) object;
        if ((this.idgeoreferenceverificationstatus == null && other.idgeoreferenceverificationstatus != null) || (this.idgeoreferenceverificationstatus != null && !this.idgeoreferenceverificationstatus.equals(other.idgeoreferenceverificationstatus))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entityBeans.Georeferenceverificationstatus[idgeoreferenceverificationstatus=" + idgeoreferenceverificationstatus + "]";
    }

}
